<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;

use GrahamCampbell\Markdown\Facades\Markdown;

use DB;
class DemoController extends Controller
{
    public function getMk()
    {
    	$str="## h1";
        echo Markdown::convertToHtml($str);
    }

    public function getDel(Request $request)
    {

    	//接收ajax传过来的id
  		$id = $_GET['id'];
  		$bool = DB::table('arts')->where('id','=',$id)->delete();
  		return $bool;
    }

    public function postShow()
    {
    	echo 123;
    }
}
